package com.mindshifter.pivotaltracker.services.v3.events
{
	import com.mindshifter.pivotaltracker.services.v3.core.TrackerUser;
	
	import flash.events.Event;
	
	public class TrackerEvent extends Event
	{	
		public static const TRACKER_USER_NOT_EXISTS			:String = "trackerUserNotExists";
		public static const TRACKER_USER_LOGGED_IN			:String = "trackerUserLoggedIn";
		public static const TRACKER_CONNECT_ERROR			:String = "trackerConnectError";
		public static const TRACKER_SECURITY_ERROR			:String = "trackerSecurityError"
		
		private var _trackerDataXml:Object;	    
		
		public function TrackerEvent(type:String, trackerUserData:Object=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this._trackerDataXml = trackerUserData;
		}
		public function get trackerDataXml():Object
		{
			return this._trackerDataXml;
		}
		private function set trackerDataXml(trackerDataXml:Object):void
		{
			this._trackerDataXml = trackerDataXml;
		}
		override public function clone():Event
		{
			return new TrackerEvent(type,_trackerDataXml,bubbles,cancelable);
		}
		
	}
}